define(["jquery","template","as/template/dst/dstList.tpl"],function($,template,tpl){
	var ui = {};

	var drawSearch = function(data){
		return template("dstList_search",data);
	}
	ui.search = function(options){
		options.dom.html(tpl.search());
		var h = drawSearch(options);
		options.dom.html(h);
	}

	var drawResult = function(data){
		return template("dstList_result",data);
	}
	ui.result = function(options){
		$("#" + options.id).html(tpl.result());
		var h = drawResult(options);
		$("#" + options.id).html(h);
	}

	return ui;
});